package com.tbit.uqbike.object.pojo.vo;

import com.tbit.uqbike.annos.Excel;
import com.tbit.uqbike.webmanager.util.csv.annotations.Csv;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.checkerframework.checker.units.qual.C;

import java.util.Date;

/**
 * 电池厂商信息数据返回对象
 *
 * @Author:BUGTian
 * @DATE: 2022/5/13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class BatteryMsgVO {

    /**
     * 电池id
     */
    private String batteryId;

    /**
     * 电池型号id
     */
    private Integer batteryModelId;
    /**
     * 电池编号
     */
    @Csv(name = "电池编号")
    @Excel(name = "电池编号", sort = 1)
    private String batteryNO;
    /**
     * 电池型号
     */
    @Csv(name = "电池型号")
    @Excel(name = "电池型号", sort = 2)
    private String batteryModel;

    /**
     * 电池容量
     */
    @Csv(name = "容量")
    @Excel(name = "容量", sort = 3)
    private String batteryCapacity;
    /**
     * 电池电压
     */
    @Csv(name = "电压")
    @Excel(name = "电压", sort = 4)
    private String batteryU;
    /**
     * 添加人名字
     */
    @Csv(name = "添加人")
    @Excel(name = "添加人", sort = 5)
    private String addAccountUserName;
    /**
     * 添加人手机号
     */
    @Csv(name = "添加人手机")
    @Excel(name = "添加人手机", sort = 6)
    private String addAccountUserPhone;
    /**
     * 添加时间
     */
    @Csv(name = "添加时间")
    @Excel(name = "添加时间", sort = 7, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    /**
     * 状态
     */
    @Csv(name = "电池状态", keys = {"1", "2", "3", "4", "5", "6", "7"}, values = {"库管中", "待出库", "车辆使用中", "领取未使用", "回收待入库", "丢失", "报废"})
    @Excel(name = "电池状态", sort = 8, readConverterExp = "1=库管中,2=待出库,3=车辆使用中,4=领取未使用,5=回收待入库,6=丢失,7=报废")
    private Integer state;

    @Csv(name = "滞留时间")
    @Excel(name = "滞留时间", sort = 9)
    private String residenceTime;
    /**
     * 电池使用次数
     */
    @Csv(name = "使用次数")
    @Excel(name = "使用次数", sort = 10)
    private String useCount;

    /**
     * 是否支持云bms功能 1：支持， 0：不支持
     */
    @Csv(name = "云BMS功能", keys = {"0", "1"}, values = {"不支持", "支持"})
    @Excel(name = "云BMS功能", sort = 11, readConverterExp = "0=不支持,1=支持")
    private Integer useBms;
    /**
     * 车辆id
     */
    private Integer machineId;

    /**
     * 车辆编号
     */
    @Csv(name = "车辆编号")
    @Excel(name = "车辆编号", sort = 12)
    private String userCode;

    /**
     * 电池品牌
     */
    private String batteryBrand;

    /**
     * 电池电流
     */
    private String batteryI;
    /**
     * 状态解析
     */
    private String stateExplain;

    /**
     * 添加入id
     */
    private Integer addAccountUserId;


    /**
     * 变更时间
     */
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;

}
